package cn.yanxiaohui.service.web.pattern.strategy;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description TODO
 * @Author： yanxh<br>
 * @Date 2019/12/5 9:51<br>
 * @Version 1.0<br>
 */
@RestController("/pay")
public class Test {

    @Autowired
    private PayContext payContext;

    @RequestMapping
    public String pay(Integer code) throws Exception{
        return payContext.pay(code);
    }
}
